<div class="zdscbs index">
    <h2><?php __('Danh sách cán bộ');?></h2>
    <h3>Chi đoàn: <?php echo $user['Z1user']['tenchidoan'];?></h3>
    <h3>Tổng số: <?php echo count($zdscbs);?></h3>
	<table cellpadding="0" cellspacing="0">
	<tr>
            <th><?php __('STT');?></th>
			<th><?php __('MSCB');?></th>
            <th><?php __('Họ Tên');?></th>			
			<th><?php __('Phái');?></th>
            <th><?php __('Ngày sinh');?></th>
			<th><?php __('Nơi sinh');?></th>
            <th><?php __('Dân tộc');?></th>
			<th><?php __('Tôn giáo');?></th>
            <th><?php __('Phường xã');?></th>
            <th><?php __('Địa chỉ');?></th>
			<th><?php __('Điện thoại');?></th>
			<th><?php __('Email');?></th>
			<th><?php __('Năm vào nghề');?></th>
            <th><?php __('Ngày vào đoàn');?></th>
			<th><?php __('Nơi vào đoàn');?></th>
			<th><?php __('Ngày vào đảng');?></th>
			<th><?php __('Nơi vào đảng');?></th>
			<th><?php __('Trưởng thành đoàn');?></th>
			<th><?php __('Ghi chú');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($zdscbs as $zdscb):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['mscb']; ?>&nbsp;</td>
        <td><?php echo $zdscb['Zdscb']['hoten']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['phai']; ?>&nbsp;</td>
        <td><?php echo $zdscb['Zdscb']['ngaysinh']; ?>&nbsp;</td>
        <td><?php echo $zdscb['Zdscb']['noisinh']; ?>&nbsp;</td>
        <td><?php echo $zdscb['Zdscb']['tendantoc']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['tentongiao']; ?>&nbsp;</td>
        <td><?php echo $zdscb['Zdscb']['tenphuongxa']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['diachi']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['sodienthoai']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['email']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['namvaonghe']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['ngayvaodoan']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['noivaodoan']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['ngayvaodang']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['noivaodang']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['ngayttdoan']; ?>&nbsp;</td>
		<td><?php echo $zdscb['Zdscb']['ghichu']; ?>&nbsp;</td>
	</tr>
<?php endforeach; ?>
	</table>
    <?php echo $this->Html->link(__('Export', true), array('controller'=>'zdscbs','action' => 'dscb')); ?>
</div>